/* eslint-disable import/no-dynamic-require */
const fs = require('fs');
const { resolve } = require('path');
const upload = require('./upload');

const packageJSON = require(resolve('./package.json'));

packageJSON.releaseVersion = process.env.npm_package_version;
fs.writeFileSync('./package.json', JSON.stringify(packageJSON, null, 2));

upload();
